package com.cskaoyan.market.service.admin.impl;

import com.cskaoyan.market.db.domain.MarketStorage;
import com.cskaoyan.market.db.mapper.MarketStorageMapper;
import com.cskaoyan.market.service.admin.MarketStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MarketStorageServiceImpl implements MarketStorageService {

    @Autowired
    MarketStorageMapper storageMapper;

    @Override
    public int addStorage(MarketStorage marketStorage) {
        int row = storageMapper.insert(marketStorage);
        return row;
    }
}
